import requests


class Login:
    def login(self, url, user, pwd):
        headers = {'Content-Type': 'application/x-www-form-urlencoded'}
        datas = 'username=%s&password=%s&savelogin=true' % (user, pwd)
        r = requests.post(url, headers=headers, data=datas)
        return r.text
